<?php
namespace app\mall\controller;

use app\mall\logic\SysconfigLogic;
use think\admin\Controller;

class Sysconfig extends Controller {

    public function config() {
        $key = request()->param('key', '');
        $config = SysconfigLogic::get_config($key);

        return $this->success($config);
    }


    /**
     * 业务配置

     */
    public function businessConfig(){
        $config= [
           'integral_duihuan_num'=>sysdata('integral_duihuan_num'),
            'duihuan_money_num'=>sysdata('duihuan_money_num'),
            'turntable1_integral'=>sysdata('turntable1_integral'),
            'turntable2_integral' =>sysdata('turntable2_integral')
        ];
        return $this->success($config);

    }


}
